import {request} from '@/utils/request'

export function getDeptList(params) {
    return request({
        url: '/api/fizz-manager/blade-system/dept/lazy-list',
        method: 'get',
        params
    })
}

export function getBladeSystemList(params) {
    return request({
        url: '/api/fizz-manager/blade-system/post/list',
        method: 'get',
        params
    })
}

export function getDeptSelectTree() {
    return request({
        url: '/api/fizz-manager/blade-system/dept/tree',
        method: 'get',
    })
}
export function getDictionary(code) {
    return request({
        url: '/api/fizz-manager/blade-system/dict/dictionary?code='+code,
        method: 'get',
    })
}
export function save(data) {
    return request({
        url: '/api/fizz-manager/blade-system/dept/submit',
        method: 'post',
        data
    })
}
// 删除
export function delDept(ids) {
    return request({
        url: 'api/fizz-manager/blade-system/dept/remove?ids='+ids,
        method: 'post',
    })
}
export function getDeptDetail(id) {
    return request({
        url: '/api/fizz-manager/blade-system/dept/detail?id='+id,
        method: 'get',
    })
}

